/*
 * 
 * LegendShop 多用户商城系统
 * 
 *  版权所有,并保留所有权利。
 * 
 */
package com.legendshop.oa.dao;

import java.text.ParseException;
import java.util.List;

import com.legendshop.dao.GenericDao;
import com.legendshop.dao.support.PageSupport;
import com.legendshop.oa.constants.DataSortResult;
import com.legendshop.oa.model.VisitLog;

/**
 * 访问历史Dao
 */
public interface VisitLogDao extends GenericDao<VisitLog, Long>{

	/**
	 * Update visit log.
	 * 
	 * @param visitLog
	 *            the visit log
	 */
	void updateVisitLog(VisitLog visitLog);

	/**
	 * Delete visit log by id.
	 * 
	 * @param id
	 *            the id
	 */
	void deleteVisitLogById(Long id);

	/**
	 * Gets the visited index log.
	 * 
	 * @param visitLog
	 *            the visit log
	 * @return the visited index log
	 */
	VisitLog getVisitedIndexLog(VisitLog visitLog);

	/**
	 * Gets the visited prod log.
	 * 
	 * @param visitLog
	 *            the visit log
	 * @return the visited prod log
	 */
	VisitLog getVisitedProdLog(VisitLog visitLog);

	List<VisitLog> getVisitLogList(String userName);

	VisitLog getVisitLogById(Long id);

	PageSupport<VisitLog> getVisitLogListPage(String curPageNO, String userName, VisitLog visitLog) throws ParseException;

	PageSupport<VisitLog> getVisitLogListPage(String curPageNO, VisitLog visitLog, DataSortResult result,
			Integer pageSize);
}
